﻿using OperationPlugins;
using TimeProject.Engine.DbContent;

namespace TimeProject.Engine
{
    /// <summary>
    /// Provides information about and functionality for the current operation.
    /// </summary>
    public abstract class TimeProjectOperationContext : OperationContext
    {
        /// <summary>
        /// Gets the db context.
        /// </summary>
        public abstract TimeProjectDbContext Db { get; }

        /// <summary>
        /// Gets the current user.
        /// </summary>
        public abstract UserInfo CurrentUser { get; }
    }
}
